import { getModules } from "@/utils";
const modules = getModules(
  require.context("low_code_base_pub_merch/components", true, /\.js$/)
);
let materalList = [];
let materalJson = {};
for (const modulesValue in modules) {
  const objValue = modules[modulesValue];
  if (objValue) {
    materalList.push(objValue.CONFIG);
    materalJson[modulesValue] = objValue.JSON;
  }
}
console.log("基础组件", modules);
// 所有接口
export default {
  list: materalList,
  json: materalJson,
};
